IVR Tutorial Lesson 6: Edit the Windows Batch File

As we have shown in the previous sections, the recorded audio file referred here is C:\Call List\recorded_message.wav. This file is submitted to Voicent Gateway when the application is deployed.

The Lesson 5 Batch File

Lesson 5 can be found here.

This is the runvcast.bat file under the folder C:\Call List. REM delays for 30 seconds
REM uses ping command as a workaround since there is no sleep command
ping 127.0.0.1 -n 30 -w 1000 > NUL
REM moves and renames audio file
move /Y "%1" "C:\Program Files\Voicent\Gateway\apps\lesson5_msg\webapps\recorded_message.wav"
REM now launches BroadcastByPhone
REM adds -noexit if you want to keep the program up after broadcast
"C:\Program Files\Voicent\BroadcastByPhone\bin\vcast.exe"
"C:\Call List\mylist.voc"
-startnow -cleanstatus

The New Batch File

All we need to do is get rid of the move command. The new content is shown below:

REM delays for 30 seconds
REM uses ping command as a workaround since there is no sleep command
ping 127.0.0.1 -n 30 -w 1000 > NUL
REM now launches BroadcastByPhone
REM adds -noexit if you want to keep the program up after broadcast
C:\Program Files\Voicent\BroadcastByPhone\bin\vcast.exe
C:\Call List\mylist.voc
-startnow -cleanstatus

You can also remove the 30 second delay if you are using a remote gateway for outbound calls.